package cn.gson.oasys.services.system.impl;

import cn.gson.oasys.model.dao.system.StatusDao;
import cn.gson.oasys.model.entity.system.SystemStatusList;
import cn.gson.oasys.services.system.StatusService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class StatusServiceImpl implements StatusService {

    @Autowired
    private StatusDao statusDao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //根据StatusModel获取系统状态列表信息
    @Override
    public List<SystemStatusList> findByStatusModel(String aoa_plan_list) {
        return statusDao.findByStatusModel(aoa_plan_list);
    }

    //根据状态id获取系统状态信息
    @Override
    public SystemStatusList findOne(Long status_id) {
        return statusDao.findOne(status_id);
    }
}
